package club.zhcs.task.bean;

import java.util.Date;

import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Table;

import com.dgj.utils.db.data.Entity;

@Table("t_task_detail")
public class TaskDetail extends Entity {

	@Column("t_task_id")
	private int taskId;

	public static enum Status {
		RUNNING, DONE, FAIL
	}

	@Column("t_task_status")
	private Status status = Status.RUNNING;

	@Column("t_start_time")
	private Date startTime;

	@Column("t_done_time")
	private Date doneTime;

	@Column("t_fail_time")
	private Date failTime;

	@Column("t_message")
	private String message;

	public int getTaskId() {
		return taskId;
	}

	public void setTaskId(int taskId) {
		this.taskId = taskId;
	}

	public Status getStatus() {
		return status;
	}

	public void setStatus(Status status) {
		this.status = status;
	}

	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public Date getDoneTime() {
		return doneTime;
	}

	public void setDoneTime(Date doneTime) {
		this.doneTime = doneTime;
	}

	public Date getFailTime() {
		return failTime;
	}

	public void setFailTime(Date failTime) {
		this.failTime = failTime;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

}
